package com.huluobo.a2109monthdemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.huluobo.a2109monthdemo.base.BaseMVVMActivity
import com.huluobo.a2109monthdemo.databinding.ActivityMainBinding

class MainActivity : BaseMVVMActivity<ActivityMainBinding>() {
    override fun initData() {
    }

    override fun initView() {
        val navHostFragment = supportFragmentManager.findFragmentById(R.id.main_nav_host_fragment) as NavHostFragment
        val navController = navHostFragment.navController
        dataBinding.mainBottomNav.setupWithNavController(navController)
    }

    override fun getLayoutId(): Int = R.layout.activity_main
}